﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<eCRAM.WebSite.Models.ExportModel>" %>
<%@ Import Namespace="eCRAM.WebSite.Tools" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Cram - Export
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Export des Crams</h2>
    <fieldset>
        <legend>Paramètres</legend>
        
        <%  using (Html.BeginForm("ProcessCramExport", "Export"))
            {
                Response.Write(Html.DropDownListFor(model => model.Month, ViewData.GetMonthList()));
                Response.Write(Html.DropDownListFor(model => model.Year, ViewData.GetYearList()));
                Response.Write("<input type='submit' name='Exporter' value='Exporter' />");
            } 
            %>
    </fieldset>
    <fieldset>
    <legend>Résultat</legend>
    <div> <%= Model.Resultat %>
    </div>
    </fieldset>
</asp:Content>
